package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppGoodsComment;
import com.ruoyi.app.domain.vo.AppGoodsCommentVo;
import com.ruoyi.app.domain.bo.AppGoodsCommentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP商品评论Service接口
 *
 * @author heike
 * @date 2023-04-24
 */
public interface IAppGoodsCommentService {

    /**
     * 查询APP商品评论
     */
    AppGoodsCommentVo queryById(Long id);

    /**
     * 查询APP商品评论列表
     */
    TableDataInfo<AppGoodsCommentVo> queryPageList(AppGoodsCommentBo bo, PageQuery pageQuery);

    /**
     * 查询APP商品评论列表
     */
    List<AppGoodsCommentVo> queryList(AppGoodsCommentBo bo);

    /**
     * 查询评论信息
     *
     * @param orderId 订单ID
     * @return
     */
    AppGoodsCommentVo queryOne(Long orderId);

    /**
     * 新增APP商品评论
     */
    Boolean insertByBo(AppGoodsCommentBo bo);

    /**
     * 修改APP商品评论
     */
    Boolean updateByBo(AppGoodsCommentBo bo);

    /**
     * 校验并批量删除APP商品评论信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
